Add a new `ABIVERSION` define which allows to control the SOVERSION used
for the built shared library. This is needed for downstream packaging to
properly track breaking ABI changes when updating to newer versions of
the library.
Suggested-by: Jo-Philipp Wich <[email protected]>
Signed-off-by: Petr Štetiar <[email protected]>
)
ENDIF()
+
+IF(ABIVERSION)
+ SET_TARGET_PROPERTIES(ubox PROPERTIES VERSION ${ABIVERSION})
+ SET_TARGET_PROPERTIES(json_script PROPERTIES VERSION ${ABIVERSION})
+ SET_TARGET_PROPERTIES(blobmsg_json PROPERTIES VERSION ${ABIVERSION})
+ENDIF()